package top.jamsee.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.text.DateFormat;
import java.util.Date;

@Data
@NoArgsConstructor
@ToString
@AllArgsConstructor//代表有全部参数
//买房表信息
public class Buy_data {
    //        标题     操作人            录入时间                详情页对应表的编号
    //主键
    private int id;
    private String title;
    //录入标题
    private String operate_person;
    //操作人
    private Date insert_time;
    //录入时间
    private int buy_detail_id;
    //详情页对应表的编号
    private int pageNum;
    //详情页对应表的编号
    private String imgAddress;
    //图片存储地址(json存储 ) 一张
    private String typeHouse_area;
    //性质与面积
    private String advantages;
    //优点标签(json存储)
    private int if_need_show;
    //是否想要显示 显示/不显示 1/0
    private  int price;



    public Buy_data(int id, String title, String operate_person, Date insert_time, int buy_detail_id) {
        this.id = id;
        this.title = title;
        this.operate_person = operate_person;
        this.insert_time = insert_time;
        this.buy_detail_id = buy_detail_id;
    }
    public Buy_data(int id, String title, String operate_person,
                    Date insert_time, int buy_detail_id,String imgAddress,
                    String typeHouse_area,String advantages,int if_need_show,int price) {
        this.id = id;
        this.title = title;
        this.operate_person = operate_person;
        this.insert_time = insert_time;
        this.buy_detail_id = buy_detail_id;
        this.imgAddress = imgAddress;
        this.typeHouse_area = typeHouse_area;
        this.advantages = advantages;
        this.if_need_show = if_need_show;
        this.price=price;


    }


}
